package SmartHome.dao;

import SmartHome.entity.UserInfo;

import java.util.List;


/**
 * ClassName : UserDao
 * Description :  //description
 * Author : Beijia Wang
 * Date: 2021-07-05 20:14
 */

public interface UserDao {
    //添加用户
    public void add(UserInfo user);
    //通过id删除用户
    public void delete(int userId);
    //通过id查询用户
    public UserInfo query(int uId);

    public void update(int uId, UserInfo user);

    public List<UserInfo> getAll();
}
